% CTC   Wavelet Plot of ECG
% 2D plot of ECG function as wavelets
%
% Each of the data point would transform to a 2-D image domain
% and the 2-D image is plot in grey-scale
%
% By measuring the pixels of 2-D image, the processed peaks
% can be segmented. (i.e. PQRST peaks)
%
%
% See also: cwt, imagesc, colormap
% Copyright: Group 8
% Modified at 20th Oct 2010
%-------------------------------------------------------------------------
function CTC = ctc(sgo_data)
% Setting data range and sampling data
range = 2:1:32;
signal = sgo_data(1:5500);
% Changing mode
wf = 'meyr';
% Transforming function cwt
ccfs = cwt(signal,range,wf);
% Transform to image file
imagesc(ccfs);     
title('Continuous Transform coefficients.') 
% Setting colour
colormap(pink(64));
% labeling axis
ylabel('Scale')